xen/arm: smmuv3: Remove the page 1 fixup
authorRobin Murphy <robin.murphy@arm.com>
Tue, 11 Jan 2022 17:10:51 +0000 (17:10 +0000)
committerJulien Grall <jgrall@amazon.com>
Tue, 6 Sep 2022 16:43:25 +0000 (17:43 +0100)
commitae4ee09eb3e4b220b2aa6c5ff41b2819090355d6
tree85d48cc6ea7e89b034d2cd8833a554244647fedb
parent19f609249a185cdc43132e4496bcfd96e371f293
xen/arm: smmuv3: Remove the page 1 fixup

Backport Linux commit 86d2d9214880. This is the clean backport without
any changes.

Since we now keep track of page 1 via a separate pointer that
already encapsulates aliasing to page 0 as necessary, we can remove
the clunky fixup routine and simply use the relevant bases directly.
The current architecture spec (IHI0070D.a) defines
SMMU_{EVENTQ,PRIQ}_{PROD,CONS} as offsets relative to page 1, so the
cleanup represents a little bit of convergence as well as just
lines of code saved.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 86d2d9214880
Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/passthrough/arm/smmu-v3.c
xen/drivers/passthrough/arm/smmu-v3.h